package com.cykj.v_m_sprintboot.service;

import com.cykj.v_m_sprintboot.bean.TbOperator;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
/**
 * @author: wei
 * @date: 2021/9/26 20:20
 */


public interface TbOpratorService {
    List<TbOperator> findOperator(RowBounds rowBounds);

    int findid();

    boolean delOperator(@Param(value = "operatorId")int operatorId,
                        @Param(value = "warehouseStateId")int warehouseStateId);


    boolean changOperator(@Param(value = "operatorId")Integer operatorId,
                          @Param(value = "operatorAccount")String operatorAccount,
                          @Param(value = "operatorTime")String operatorTime,
                          @Param(value = "operatorName")String operatorName,
                          @Param(value = "warehouseStateId")Long warehouseStateId,
                          @Param(value = "operatorPhone")String operatorPhone,
                          @Param(value = "operatorAddress")String operatorAddress,
                          @Param(value = "operatorLicence")String operatorLicence);

    List<TbOperator> findonSelect(@Param(value = "operatorName")String operatorName ,RowBounds rowBounds);

    //修改运营商账号密码
    boolean ChangePwdOperator(@Param(value = "operatorId")int operatorId,
                              @Param(value = "operatorPassword")String operatorPassword);

    boolean insertOperter( @Param(value = "operatorAccount")String operatorAccount,
                           @Param(value = "operatorPassword")String operatorPassword,
                           @Param(value = "operatorName")String operatorName,
                           @Param(value = "operatorPhone")String operatorPhone,
                           @Param(value = "operatorAddress")String operatorAddress,
                           @Param(value = "operatorLicence")String operatorLicence,
                           @Param(value = "operatorTime")String operatorTime);

    List<TbOperator>   OpLogin( @Param(value = "operatorPhone")String operatorPhone,
                     @Param(value = "operatorPassword")String operatorPassword);

    List<TbOperator> findPhone(@Param(value = "operatorPhone")String operatorPhone);
}
